package com.jurassic.demo;

import com.jurassic.demo.entity.User;
import com.jurassic.demo.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/8/3 9:31
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
public class MainClass {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        UserService userService = context.getBean(UserService.class);
        User user = userService.getUser(1);
        System.out.println("user = " + user);
        userService.login("bob@example.com","password");
    }
}
